<#assign module="driver"/>

<@override name="header">
<link rel="stylesheet" href="${ctx}/assets/css/datetimepicker.css">
</@override>
<@override name="body">

	<div class="row">
		<div class="col-md-12">
			<div class="panel panel-default">
				<div class="panel-heading">
					通知详情
			    </div>
			    <div class="panel-body">
    				<form id="submit_form" action="${ctx}/notice/create" class="form-horizontal" method="post">
		                
		                <div class="form-group">
		                    <label class="col-sm-3 control-label"></label>
		                    <div class="col-sm-6">
		                    	<font color="red">注：遵守国家有关法律、行政法规和管理规章，请勿发送垃圾、广告、以及其他含有法律，行政法规禁止内容的短信。一经发现，将做封号处理（短信费用不退还）。</font>
		                    </div>
		                </div>
		                
		                <div class="form-group">
		                    <label class="col-sm-3 control-label"><em>*</em>内容：</label>
		                    <div class="col-sm-6">
		                    	<textarea class="form-control" id="content" name="content" rows="8" readOnly  required>${notice.content?if_exists}</textarea>
		                    	<span>每64个字符（空格也算作一个字符）算作为一条短信，当前显示长度不包含签名，<font color="red">应短信通道要求，系统会在末尾自动加上退订回复TD</font>，最终短信内容将增加签名长度和退订回复TD的长度，已输入<span id="putWords" style="color:red;">0</span>个字符。</span>
	                        	<br/>
	                        	<font color="red">注1：填写内容时请勿回车换行，否则可能导致发送短信时长度不一致</font>
	                        	<br/>
	                            <font color="red">注2：若发布方式勾选上应用通知后，以上内容将会在APP语音播报</font>
		                    </div>
		                </div>
		                
		                <div class="form-group">
		                    <label class="col-sm-3 control-label">详细说明：</label>
		                    <div class="col-sm-7">
		                    	<textarea class="form-control" id="contentMore" name="contentMore"  rows="8">${notice.contentMore?if_exists}</textarea>
		                    	<span>该详细说明为非必填，填写后会为发送的内容中自动加入该详细说明的网页地址</span>
		                    </div>
		                </div>
		                
		                <div class="form-group" style="margin-left:10px;">
			                <label class="col-sm-3 control-label"></label>
			                <input type="button" class="btn btn-default" onclick="window.location.href = '${ctx}/notice/list';" value="返回">
			            </div>
			            
					</form>
        		</div>
			</div>
		</div>
	</div>

</@override>
<@override name="footer">
<script src="${ctx}/assets/kindeditor/kindeditor-all-min.js"></script>
<script src="${ctx}/assets/kindeditor/lang/zh_CN.js"></script>
<script src="${ctx}/assets/js/datepicker.js"></script>
<script src="${ctx}/assets/js/notice/add.js"></script>
<script type="text/javascript">
	KindEditor.ready(function(K) {
		var editer=K.create('#contentMore',{
			filterMode : false,
			uploadJson : ctx+'/common/kindeditor/fileupload',
			allowUpload : true,
			fileManagerJson : ctx+'/common/kindeditor/filemanager',
			allowFileManager : true,
			height:400,
			width:'100%',
			resizeType:0,
			afterCreate : function() {
				var self = this;
				K.ctrl(document, 13, function() {
					self.sync();
				});
				K.ctrl(self.edit.doc, 13, function() {
					self.sync();
				});
			},
			afterBlur:function(){ 
				this.sync();
			}
		});
		
		editer.readonly(true);
		
	});
	
</script>
</@override>
<@extends name="../layout.ftl"/>